function userInfoList() {
    $.ajax({
        "url":"user2.do",
        "type":"get",
        "datatype":"json",
        "data":{"option":"showInfo","email":$("#email").val()},
        "success":function (result) {
            initdata(result);
        }
    });
    function initdata(user) {
        $("#userName").val(user.username);
        $("#userPhone").val(user.phone);
        if (user.sex=="0"){
            $("#man").attr("checked",true);
        }else{
            $("#faman").attr("checked",true);
        }
    }
}

function updateInfo2() {
    console.log("进入updateInfo");
        $.ajax({
            "url":"user2.do",
            "type":"get",
            "datatype":"json",
            "data":{
                "option":"userUpdate",
                 "email":$("#email").val(),
                "userName":$("#userName").val(),
                "userPhone":$("#userPhone").val(),
                "sex":$(".sexRadio").val
            },
            "success":function (result) {
                if(result=='true'){
                    alert("修改成功");
                    userInfoList();
                }
            }
        });
}